package com.scheduler.backend.po;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor

@Entity
@Table(name = "order_slice_employee_group")
@IdClass(OrderSliceToEmployeeGroup.OrderSliceEmployeePK.class)
public class OrderSliceToEmployeeGroup {

    @Id
    private String id;

    @Id
    private String employeeGroupID; //员工小组的id

    @lombok.Data
    @lombok.Builder
    @lombok.AllArgsConstructor
    @lombok.NoArgsConstructor
    public static class OrderSliceEmployeePK implements Serializable {

        private static final long serialVersionUID = 20201112;

        @Column(name = "id")
        private String id;

        @Column(name = "employee_group_id")
        private String employeeGroupID;

    }
}
